<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .wrap {
            margin: auto;
            width: 500px;
            display: flex;
        }
        .gif-wrap {
            flex: 1;
            height: 340px;
            margin: auto;
            background: url("images/dog.gif");
        }
        .dog-wrap {
            flex: 1;
            height: 340px;
            margin: auto;
            background-color: black;
            overflow: hidden;
        }
        .dog-animation {
            width: 100%;
            height: 100%;
            background: url("images/dog.png") no-repeat;
            animation: dog-running 1s steps(60) infinite;
            zoom: 1;
            background-size: cover;
            background-position: 0 0;
        }

        @keyframes dog-running {
            100%{
                transform: scale(4.1) translate(-50px, 103px);
            }
        }
        .dog-wrap:hover .dog-animation {
            animation-play-state: paused;
        }
    </style>
</head>
<body>
<div class="wrap">
    <div class="gif-wrap"></div>
    <div class="dog-wrap">
        <div class="dog-animation"></div>
    </div>
</div>
</body>
</html>